﻿using System;
using System.Windows;
using zjx.Wpf.Graffitiboard.Adorners;

namespace zjx.Wpf.Graffitiboard.Core
{
    public interface ISelectable
    {
        Guid ID { get; }

        bool IsSelected { get; set; }

        ResizeRotateAdorner SelectionAdorner { get; set; }

        /// <summary>
        /// 获取控件区域
        /// </summary>
        /// <returns></returns>
        Rect GetBounds();

        /// <summary>
        /// 移动到指定位置
        /// </summary>
        /// <param name="offsetX">水平偏移量</param>
        /// <param name="offsetY">垂直偏移量</param>
        void MoveTo(double offsetX, double offsetY);
    }
}
